package com.aaa.backsystem.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gyc
 * @since 2020-07-27
 */
@TableName("tbl_petrol_station_type")
public class PetrolStationType extends Model<PetrolStationType> {

    private static final long serialVersionUID = 1L;

    /**
     * 加油站类型id
     */
    @TableId(value = "ps_type_id", type = IdType.AUTO)
    private Integer psTypeId;
    /**
     * 加油站类型（小，中，大）
     */
    @TableField("ps_type")
    private String psType;
    @TableField("ps_threshold")
    private Integer psThreshold;


    public Integer getPsTypeId() {
        return psTypeId;
    }

    public void setPsTypeId(Integer psTypeId) {
        this.psTypeId = psTypeId;
    }

    public String getPsType() {
        return psType;
    }

    public void setPsType(String psType) {
        this.psType = psType;
    }

    public Integer getPsThreshold() {
        return psThreshold;
    }

    public void setPsThreshold(Integer psThreshold) {
        this.psThreshold = psThreshold;
    }

    @Override
    protected Serializable pkVal() {
        return this.psTypeId;
    }

    @Override
    public String toString() {
        return "PetrolStationType{" +
        "psTypeId=" + psTypeId +
        ", psType=" + psType +
        ", psThreshold=" + psThreshold +
        "}";
    }

    public PetrolStationType(Integer psTypeId, Integer psThreshold) {
        this.psTypeId = psTypeId;
        this.psThreshold = psThreshold;
    }

    public PetrolStationType() {
    }
}
